//
//  DBNetWork.h
//  KidReading
//
//  Created by telen on 15/7/21.
//  Copyright (c) 2015年 刘赞黄Telen. All rights reserved.
//

#import "DBHelper.h"

//2.0
#define __Ser2_GetQuizList @"/api/quiz/list" //获得Quiz列表

//3.0
#define __Ser3_GetNoticeList @"/api/server/notice/list"  //获得公告信息
#define __Ser3_GetSupportFileList @"/api/supportfile/list"  //获得功能文件信息
#define __Ser3_GetTalkVideoList @"/api/talk/videoList"   //获取talk用到的video基础数据列表
#define __Ser3_SaveTalkVideoInfo @"/api/talk/saveTalkVideo"  //存获取到的talk的video路径和video的share路径
#define __Ser3_GetTalkList @"/api/talk/talkList" //获取talk的基础数据
#define __Ser3_GetReadingCount @"/api/statis/readingCount" //获取图书阅读量接口
//
#define __Ser3_Send_StatisticsInfo @"/api/statis/synchronous" //发送阅读统计信息
#define __Ser3_Send_StatisticsInfo_Dict @"/api/statis/operations" //发送阅读统计信息_更多


//3.1
#define __Ser3_GetBookList_All @"/api/server/book/list"  //获得所有书

@interface DBHelper (DBNetWork)

//BaseNet
- (void)askNet:(NSString*)port andBaseUrl:(NSString*)baseUrl parameters:(NSDictionary*)dict success:(void (^)(NSDictionary* retDict))success failure:(void (^)(NSError *error))failure;

//Ser2
- (void)askSer_Net:(NSString*)port parameters:(NSDictionary*)dict success:(void (^)(NSDictionary* retDict))success failure:(void (^)(NSError *error))failure;


//ReadingCount
- (void)getNetReadingCount_complete:(void (^)(NSDictionary *))comp noSelect:(BOOL)noSelect;


//Book
- (void)getNetBook_complete:(void (^)(void))comp;


//Notice
- (void)getNetNotice_complete:(void (^)(NSDictionary* retDict))comp; //ss

//Quiz
- (void)getNetQuiz_complete:(void (^)(void))comp;


//SupportFiles
- (void)getNetSupportFiles_complete:(void (^)(NSDictionary* retDict))comp;


//Send Read_Record
- (void)sendNetLocalReadRecord_complete:(void (^)(JRFMDatabase * db))comp; //ss
//Send Read_Record
- (void)sendNetLocalReadRecord_Dict_complete:(void (^)(JRFMDatabase * db))comp; //ss

//Talk_List
- (void)getNetTalkList_complete:(void (^)(void))comp;

//TalkVideoList
- (void)getNetTalkVideoList_complete:(void (^)(void))comp;

//Send TalkSaveInfo
- (void)sendNetTalkInfo_complete:(void (^)(JRFMDatabase * db))comp;


//最新时间管理
- (BOOL)isUserTimeOK;

@end
